package com.ihome.android.market2.info;

import android.os.Parcel;
import android.os.Parcelable;

public class GetMarketInfoReqInfo implements Parcelable {
	/** 应用包名 */
	protected String	packageName;
	/**
	 * 操作指令 可选值： 0 (直接获取); 1(SessionKey 过期，重新获取)
	 */
	protected int	operate;
	
	

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("packageName              = ").append(packageName).append("\n");
		sb.append("operate                  = ").append(operate).append("\n");
		return sb.toString();
	}

	public GetMarketInfoReqInfo() {}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public int getOperate() {
		return operate;
	}

	public void setOperate(int operate) {
		this.operate = operate;
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(packageName);
		dest.writeInt(operate);
	}

	public GetMarketInfoReqInfo(Parcel source) {
		this.packageName = source.readString();
		this.operate = source.readInt();
	}

	public static final Parcelable.Creator<GetMarketInfoReqInfo>	CREATOR	= new Parcelable.Creator<GetMarketInfoReqInfo>() {

																			@Override
																			public GetMarketInfoReqInfo createFromParcel(
																					Parcel source) {
																				return new GetMarketInfoReqInfo(source);
																			}

																			@Override
																			public GetMarketInfoReqInfo[] newArray(int size) {
																				return new GetMarketInfoReqInfo[size];
																			}

																		};

}
